<?php

namespace app\model\scope;

trait ScopeRobot
{
    public function scopeRobot($query, $group)
    {
        return $query->where(['group_id'=>$group]);
    }
}